package com.chen.springboot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 教练表
 * @author chenchao
 * @date 2022/6/18 15:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("team")
@ApiModel("球队表")
public class Team implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "logo")
    private String abbr;

    @ApiModelProperty(value = "分区")
    private String division;

    @ApiModelProperty(value = "球队名称")
    @TableField(value = "displayAbbr")
    private String displayAbbr;

    @ApiModelProperty(value = "建队时间")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "英文队名")
    @TableField(value = "nameEn")
    private String nameEn;

    @ApiModelProperty(value = "英文名")
    @TableField(value = "cityEn")
    private String cityEn;

    @ApiModelProperty(value = "东西部")
    @TableField(value = "displayConference")
    private String displayConference;

    @ApiModelProperty(value = "城市")
    @TableField(value = "city")
    private String city;
}
